package com.example.android.snake;

/**
 * Simple class containing two integer values and a comparison function.
 * There's probably something I should use instead, but this was quick and
 * easy to build.
 * 
 */
public class PairInt {
    public int x;
    public int y;

    public PairInt(int newX, int newY) {
        x = newX;
        y = newY;
    }

    public boolean equals(PairInt other) {
        if (x == other.x && y == other.y) {
            return true;
        }
        return false;
    }

    @Override
    public String toString() {
        return "Coordinate: [" + x + "," + y + "]";
    }
}
